package cn.brondfish.icedfish.framework.config;

import cn.brondfish.icedfish.framework.annotation.AppConfig;

public class BF_APPConfigEntity {
    // 配置文件名
    public static final String APP_CONFIG_FILE = "app_base_config.properties";
    // 配置文件版本
    public static final String CFG_VERSION_CONFIG_KEY = "cfg_version";
    // APP设置
    public static final String APP_THEME_CONFIG_KEY = "app.theme";
    // 服务器配置
    public static final String SERVER_URL_CONFIG_LEY = "server.host";
    public static final String SERVER_PORT_CONFIG_LEY = "server.port";
    public static final String SERVER_TYPE_CONFIG_LEY = "server.type";

    private static final String app_theme_default_value = "auto";

    // 配置文件版本
    @AppConfig(configKey = CFG_VERSION_CONFIG_KEY)
    private String cfg_version;
    // APP设置
    @AppConfig(configKey = APP_THEME_CONFIG_KEY, defaultValue = app_theme_default_value)
    private String app_theme;
    // 服务器配置
    @AppConfig(configKey = SERVER_URL_CONFIG_LEY)
    private String server_host;
    @AppConfig(configKey = SERVER_PORT_CONFIG_LEY)
    private String server_port;
    @AppConfig(configKey = SERVER_TYPE_CONFIG_LEY, defaultValue = "false")
    private String server_type;

    public String getCfg_version() {
        return cfg_version;
    }

    public void setCfg_version(String cfg_version) {
        this.cfg_version = cfg_version;
    }

    public String getApp_theme() {
        return app_theme;
    }

    public void setApp_theme(String app_theme) {
        this.app_theme = app_theme;
    }

    public String getServer_host() {
        return server_host;
    }

    public void setServer_host(String server_host) {
        this.server_host = server_host;
    }

    public String getServer_port() {
        return server_port;
    }

    public void setServer_port(String server_port) {
        this.server_port = server_port;
    }

    public String getServer_type() {
        return server_type;
    }

    public void setServer_type(String server_type) {
        this.server_type = server_type;
    }

    @Override
    public String toString() {
        return "BF_APPConfig{" +
                "cfg_version='" + cfg_version + '\'' +
                ", app_theme='" + app_theme + '\'' +
                ", server_host='" + server_host + '\'' +
                ", server_port='" + server_port + '\'' +
                ", server_type='" + server_type + '\'' +
                '}';
    }

}
